home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 8_5.lha / 8_5 / sprintf.c < prev    next >
Text File  |  1993-08-08  |  379b  |  20 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / write the arguments in a formatted manner to a string
  6. include <stdarg.h>
  7. nt sprintf(char *s, const char *fmt, ...)
  8.  
  9.    if (s)
  10. {
  11. va_list ap;
  12. va_start(ap, fmt);
  13. int ret = vsprintf(s, fmt, ap);
  14. va_end(ap);
  15. return ret;
  16. }
  17.  
  18.    return EOF;
  19.  
  20.